package cn.com.ctcloud.saas.core.pojo;

/**
 * Title: ChinaCT IDS
 * <p>
 * Description: 统一的JSON格式数据响应类，为前后端分离做基础
 * <p>
 * Copyright: Copyright (c) 2008
 * <p>
 * Company: Liaoning Open Data Communication Co.,Ltd.
 *
 * @author lihui
 * @version 2.0.0
 */
public class ApiResponse<T> {
	// HTTP响应代码：200、404等
	private Integer code;

	// 提示信息
	private String msg;

	// 返回的数据
	private T data;

	public ApiResponse(Integer code, String msg, T data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

}